﻿namespace Alkitab
{
    using Alkitab.Language;
    using Microsoft.Phone.Controls;
    using System.Windows;

    public partial class PilihTerjemahan : PhoneApplicationPage
    {
        #region Constructors

        public PilihTerjemahan()
        {
            InitializeComponent();
        }

        #endregion Constructors

        #region Methods

        private void gantiASV_Click(object sender, RoutedEventArgs e)
        {
            Globals.Settingan["terjemahan"] = "AmericanStandardVersion";
            Globals.versiKitab = "AmericanStandardVersion";
            Globals.Settingan["parallelRead"] = "00001";
            Bacaan.needRefresh = true;
            MessageBoxResult m = MessageBox.Show(Labels.MSG_NowUse + " 'American Standard Version'.");
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiIndonesiaSeharihari_Click(object sender, RoutedEventArgs e)
        {
            Globals.Settingan["terjemahan"] = "IndonesiaSeharihari";
            Globals.versiKitab = "IndonesiaSeharihari";
            Globals.Settingan["parallelRead"] = "10000";
            Bacaan.needRefresh = true;
            MessageBoxResult m = MessageBox.Show(Labels.MSG_NowUse + " 'Bahasa Indonesia Sehari-hari'.");
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiKJV_Click(object sender, RoutedEventArgs e)
        {
            Globals.Settingan["terjemahan"] = "KingJamesVersion";
            Globals.versiKitab = "KingJamesVersion";
            Globals.Settingan["parallelRead"] = "00010";
            Bacaan.needRefresh = true;
            MessageBoxResult m = MessageBox.Show(Labels.MSG_NowUse + " 'King James Version'.");
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiLuther_Click(object sender, RoutedEventArgs e)
        {
            Globals.Settingan["terjemahan"] = "GermanvLuther";
            Globals.versiKitab = "GermanvLuther";
            Globals.Settingan["parallelRead"] = "00001";
            Bacaan.needRefresh = true;
            MessageBoxResult m = MessageBox.Show(Labels.MSG_NowUse + " 'Luther'.");
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiTerjemahanBaru_Click(object sender, RoutedEventArgs e)
        {
            Globals.Settingan["terjemahan"] = "TerjemahanBaru";
            Globals.versiKitab = "TerjemahanBaru";
            Globals.Settingan["parallelRead"] = "01000";
            Bacaan.needRefresh = true;
            MessageBoxResult m = MessageBox.Show(Labels.MSG_NowUse + " 'Indonesia Terjemahan Baru'.");
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        #endregion Methods
    }
}